/**
 * Copyright © 2018 陈锦韬  All rights reserved.
 * 
 * @Package: com.rx.controller 
 * @author: Administrator   
 * @date: 2018年1月22日 下午4:06:51
 */
package com.rx.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.rx.core.base.BaseController;
import com.rx.core.exp.BizException;
import com.rx.dto.TestTest2;
import com.rx.service.inner.TestService;

/**
 * @className: DemoController 
 * @author: Administrator
 * @Description: TODO
 * @date: 2018年1月22日 下午4:06:51
 */
@RestController
@RequestMapping(value="demo2")
public class DemoController extends BaseController {

	@Autowired
	TestService testService;
	
	@RequestMapping(value="hello",method=RequestMethod.GET)
	public String hello(@RequestParam(value="information",defaultValue="") String information) throws ClassNotFoundException, BizException{

		TestTest2 o = new TestTest2();
		o.setName("test");
		return "ok"+testService.test2(o.toString());
	}
}
